> 
> You may try this:
> 
> RewriteEngine on
> RewriteRule
> .*\.(js|ico|gif|jpg|jpeg|png|css|txt|rtf|pdf|doc|docx|xls|xlsx|ppt|pptx
> |mov|mpg|mp3|mp4|mpeg|avi|wmv|wmx|xml)$
> index.php
> 
> If you want all non-existent file requests to be redirected to ZF, then
> use this:
> 
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule .* index.php

ZF command line tool creates this file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

What this does:

Turn on the rewrite engine.
If the requested file is a file (with size>0) OR
If the requested file is a symlink OR
If the requested file is a directory
Rewrite to itself (no rewrite) and stop rewriting ([L] = last)
Rewrite all to index.php


Vincent de Lau
 vinc...@delau.nl

Reply via email to